package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Permission;
import cn.wolfcode.crm.domain.Role;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IRoleService {
    List<Role> selectAll();

    PageResult query(QueryObject qo);

    void updateByPrimaryKey(Role record);

    void insert(Role record);

    void deleteById(Long id);

    List<Permission> selectPermissions(Long roleId);

    List<Long> getMenuIdByRoleId(Long roleId);

    List<String> selectRoleByEmployeeId(Long id);
}
